﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WCS.Infrastructure.Dto.Common;

namespace WCS.Infrastructure.Dto.Request.Payment
{
    /// <summary>
    /// 提现账户表对象
    /// </summary>
    public class WithdrawalAccountRequestDto:BaseRequestDto
    {
        /// <summary>
        /// 提现账户ID
        /// </summary>
        [Key]
        [StringLength(32)]
        public string? Id { get; set; } = null!;

        /// <summary>
        /// 账户类型(0=未定义,1=对公账户,2=法人账户,3=授权对公,4=授权对私)
        /// </summary>
        public int? AccountType { get; set; }

        /// <summary>
        /// 真实姓名
        /// </summary>
        [StringLength(255)]
        public string? RealName { get; set; }

        /// <summary>
        /// 身份证号
        /// </summary>
        [StringLength(18)]
        public string? IdentityCard { get; set; }

        /// <summary>
        /// 身份证详细地址
        /// </summary>
        [StringLength(512)]
        public string? Address { get; set; }

        /// <summary>
        /// 有效期开始日期
        /// </summary>
        [Column(TypeName = "timestamp(6) without time zone")]
        public DateTime? StartDate { get; set; }

        /// <summary>
        /// 有效期结束日期（无限制就不填）
        /// </summary>
        [Column(TypeName = "timestamp(6) without time zone")]
        public DateTime? EndDate { get; set; }

        /// <summary>
        /// 开户银行名称
        /// </summary>
        [StringLength(512)]
        public string? Bank { get; set; }

        /// <summary>
        /// 开户银行支行名称
        /// </summary>
        [StringLength(512)]
        public string? BankBranch { get; set; }

        /// <summary>
        /// 银行账号
        /// </summary>
        [StringLength(512)]
        public string? BankAccount { get; set; }

        /// <summary>
        /// 扩展属性
        /// </summary>
        public string? ExtraProperties { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Column(TypeName = "timestamp(6) without time zone")]
        public DateTime? CreationTime { get; set; }

        /// <summary>
        /// 最后修改时间
        /// </summary>
        [Column(TypeName = "timestamp(6) without time zone")]
        public DateTime? LastModificationTime { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool? IsDeleted { get; set; }

        /// <summary>
        /// 删除者ID
        /// </summary>
        [StringLength(32)]
        public string? DeleterId { get; set; }

        /// <summary>
        /// 删除时间
        /// </summary>
        [Column(TypeName = "timestamp(6) without time zone")]
        public DateTime? DeletionTime { get; set; }

        /// <summary>
        /// 启用状态
        /// </summary>
        public int? EnableStatus { get; set; }

        /// <summary>
        /// 激活状态
        /// </summary>
        public int? ActivationStatus { get; set; }

        /// <summary>
        /// Epaylinks审核通过时间
        /// </summary>
        [Column(TypeName = "timestamp(6) without time zone")]
        public DateTime? EpaylinksApprovedTime { get; set; }

        /// <summary>
        /// Epaylinks首次申请时间
        /// </summary>
        [Column(TypeName = "timestamp(6) without time zone")]
        public DateTime? EpaylinksFirstApplyTime { get; set; }

        /// <summary>
        /// Epaylinks最后申请时间
        /// </summary>
        [Column(TypeName = "timestamp(6) without time zone")]
        public DateTime? EpaylinksLastApplyTime { get; set; }

        /// <summary>
        /// Epaylinks审核通知时间
        /// </summary>
        [Column(TypeName = "timestamp(6) without time zone")]
        public DateTime? EpaylinksAuditNotificationTime { get; set; }

        /// <summary>
        /// Epaylinks业务通知时间
        /// </summary>
        [Column(TypeName = "timestamp(6) without time zone")]
        public DateTime? EpaylinksBusinessNotificationTime { get; set; }

        /// <summary>
        /// 审核消息
        /// </summary>
        [StringLength(512)]
        public string? ApproveMessage { get; set; }


        //////////////////////////////////////////////////////////////////////////////////////




    }
}
